module.exports = (req, res) => {
    console.log('---->', req.params);
    const params = req.params;

    if (params.user && params.user === 'admin' && params.password && params.password === 'admin') {
        return res.json({
            resultCode: 0,
            resultMsg: '',
            data: {
               token: 'eifeija13883kwmiakqi129'
            }
        });
    } else {
        return res.json({
            resultCode: 1000,
            resultMsg: '账号密码错误',
            data: {}
        });
    }
  
}